/**
 * 项目名称：MSHF
 * 包名称：com.mt.edu.domain
 * 文件名称：Courseware.java
 */
package com.mt.edu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 类名称：Courseware <br>
 * 类描述： 课件<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 28, 2014 8:53:15 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 28, 2014 8:53:15 PM <br>
 */
@Entity
@Table(name="OL_COURSEWARE")
public class Courseware implements Serializable {

	private static final long serialVersionUID = 1988709248190763426L;

	private String id;
	private String name;
	private Subject subject;
	private Grade grade;
	private Category category;
	private Integer timeLong;
	private Integer credit;
	private Integer source;
	private String tag;
	private String style;
	private String path;
	private String handoutType;
	private String handoutPath;
	private Date createDt;
	private Date updateDt; 
	private String operator;
	
	@Id
	@Column(name = "COURSEWARE_ID")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	@Column(name = "COURSEWARE_NAME")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="SUBJECT_ID")
	public Subject getSubject() {
		return subject;
	}
	public void setSubject(Subject subject) {
		this.subject = subject;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="GRADE_ID")
	public Grade getGrade() {
		return grade;
	}
	public void setGrade(Grade grade) {
		this.grade = grade;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="COURSESWARE_CATEGORY_ID")
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	
	@Column(name = "COURSESWARE_TIME_LONG")
	public Integer getTimeLong() {
		return timeLong;
	}
	public void setTimeLong(Integer timeLong) {
		this.timeLong = timeLong;
	}
	
	@Column(name = "COURSESWARE_CREDIT")
	public Integer getCredit() {
		return credit;
	}
	public void setCredit(Integer credit) {
		this.credit = credit;
	}
	
	@Column(name = "COURSESWARE_SOURCE")
	public Integer getSource() {
		return source;
	}
	public void setSource(Integer source) {
		this.source = source;
	}
	
	@Column(name = "COURSEWARE_TAG")
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	
	@Column(name = "COURSEWARE_STYLE")
	public String getStyle() {
		return style;
	}
	public void setStyle(String style) {
		this.style = style;
	}
	
	@Column(name = "COURSEWARE_PATH")
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	@Column(name = "HANDOUT_TYPE")
	public String getHandoutType() {
		return handoutType;
	}
	public void setHandoutType(String handoutType) {
		this.handoutType = handoutType;
	}
	
	@Column(name = "HANDOUT_PATH")
	public String getHandoutPath() {
		return handoutPath;
	}
	public void setHandoutPath(String handoutPath) {
		this.handoutPath = handoutPath;
	}
	
	@Column(name = "CREATE_DT")
	public Date getCreateDt() {
		return createDt;
	}
	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}
	
	@Column(name = "UPDTE_DT")
	public Date getUpdateDt() {
		return updateDt;
	}
	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}
	
	@Column(name = "OPERATOR")
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
}
